package com.sfc.spiderweb.service.impl.adb;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.sfc.spiderweb.entity.po.adb.AmazonBillData;
import com.sfc.spiderweb.mapper.adb.AmazonBillDataMapper;
import com.sfc.spiderweb.service.adb.AmazonBillDataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DS("slave_2")
@Slf4j
public class AmazonBillDataServiceImpl implements AmazonBillDataService {

    @Autowired(required = false)
    private AmazonBillDataMapper mapper;

    @Override
    public int insertBatch(List<AmazonBillData> list) {
        return mapper.insertBatch(list);
    }

    @Override
    public int maxId() {
        return mapper.maxId();
    }
}
